class animals():
    def eat(self):
        print("吃饭")
    def drink(self):
        print("喝水")
class cat(animals):
    def miaomiao(self):
        print("喵喵叫")
class dog(animals):
    def wangwang(self):
        print("喵喵叫")
dewen=cat()
dewen.eat()
hashiqi=dog()
hashiqi.drink()

class A():
    def a(self):
        print("我是方法a")
        pass
class B():
    def b(self):
        print("我是方法b")
        pass
class C(A,B):
    pass
c=C()
c.a()
c.b()